/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module msgfuncs.h - Header file for Functions for message retreival and display |
   @end

$Log: /SoftPay/SPK2SIM/Source/Include/msgfuncs.h $
 *
 * 11    3/14/00 6:50p Kevin_v1
 * Added FLD_SUFFIX
 *
 * 10    3/13/00 4:36p Brett_a1
 *
 * 9     3/05/00 11:13p Jim_b4
 * Code Security scheme added to each significant source file
 *
 * 8     3/03/00 2:59p Kevin_v1
 * Removed remnants of Message Filename as a parameter usage.
 *
 * 7     2/21/00 3:00p Jim_b4
 * Include file restructuring
 *
 * 6     1/26/00 6:42p Page_k1
 * Remove first parameter from vdGetMessageFromFile and
 * vdDisplayMessageFromFile
 *
 * 5     12/14/99 4:38p Page_k1
 * Change Message id to include flexi record id
 *
 * 4     11/23/99 9:44a Jim_b4
 * Prototype cleanup in Scalls and beyond plus fix to menufuncs
 *
 * 3     10/12/99 5:08p Kevin_v1
 * Remove references to SUSPEND code
 *
 * 2     9/09/99 12:28p Kevin_v1
 * Moved DAT_SUFFIX and support from SUSPEND
 *
 * 1     7/19/99 5:42p Jim_b4
 *
 * 1     7/19/99 4:25p Jim_b4
 *
 * 2     6/09/99 11:20a Monique_b1
 * Change headers and file names for SP 2000
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef VSMSG_H
#define VSMSG_H

#include <transact.h>

#define DAT_SUFFIX  szSuffixDAT
#define FLD_SUFFIX  szSuffixFLD
#define TMP_SUFFIX  szSuffixTMP
#define IDX_SUFFIX  szSuffixIDX
#define IIT_SUFFIX  szSuffixIIT
#define SUS_SUFFIX  szSuffixSUS
#define IDS_SUFFIX  szSuffixIDS
#define IDO_SUFFIX  szSuffixIDO
#define SUO_SUFFIX  szSuffixSUO

#define FILE_SUFFIX_SIZE  4

extern char  szSuffixSUS[];
extern char  szSuffixDAT[];
extern char  szSuffixFLD[];
extern char  szSuffixIDX[];
extern char  szSuffixIDS[];
extern char  szSuffixIIT[];
extern char  szSuffixTMP[];
extern char  szSuffixIDO[];
extern char  szSuffixSUO[];

#define ERROR_MSG		1
#define WARNING_MSG     2
#define STATUS_MSG      3
#define ENTRY_MSG       4


int inSelectMessageFile(const char *szMessageFileSuffix);
void vdDisplayErrorMessage(long lnMessageIndex);
void vdDisplayMessage(const char *szMessage, int inMsgType);
void vdDisplayMessageFromFile(long lnMessageIndex, int inMsgType);
void vdGetMessageFromFile(long lnMessageIndex, char *szMessageBuffer);
void vdGetMessageFromThisFile(const char *szFileNameSuffix, int inMessageIndex, char *szMessageBuffer);
void vdGetMessageFromReceiptFile(long lnMessageIndex, char *szMessageBuffer, TRANSACTION_OBJECT *pobTran);
VS_BOOL fUpdateSPAMessages(TRANSACTION_OBJECT *pobTran);
int inConvertCase(char *pszMsgIn, char *pszMsgOut);
int MSGFUNCS_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
void vdGetIdlePrompt(void);


#endif
